package cn.hanyx.coder.design.pattern.structural.bridge.demo02;

import cn.hanyx.coder.design.pattern.structural.bridge.info.ApiStatInfo;

/**
 * Demo02
 *
 * @author hanyx
 * @date 2020/05/19
 */
public class Demo02 {
    public static void main(String[] args) {
        ApiStatInfo apiStatInfo = new ApiStatInfo();
        apiStatInfo.setApi("abc");
        apiStatInfo.setDurationOfSeconds(10);
        apiStatInfo.setErrorCount(1);
        apiStatInfo.setTimeoutCount(3333);
        ApplicationContext.getInstance().getAlert().check(apiStatInfo);
    }
}
